Validators pattern decimal and minus numbers

106

Validators pattern decimal and minus numbers -

new FormControl({value: field.value}, [Validators.required, Validators.pattern(/^-?(0|[1-9]\d*)?$/)])

Comments

Submit
0 Comments